package com.newcapec.lesson7;

public class Demo1 {
    public static void main(String[] args) {
        Student student1 = new Student();
        student1.setAge(2500);
        System.out.println(student1.getAge());

        System.out.println(student1.getName());

      /*  Person person = new Monk();
        person.eat();
        person.eat("meat");*/
        Person person = new Person();
        person.eat();
        person.eat("meat");
    }
}
